<%-- 
    Document   : cleanpageprint
    Created on : Feb 8, 2009, 11:55:07 PM
    Author     : salim
    
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="datapackage.*" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.Date" %>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="java.util.TimeZone"%>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
         <link rel="stylesheet" type="text/css" href="background.css" /> 
          <%-- <link rel="stylesheet" type="text/css" href="http://10.130.0.12/themes/cofares.css" /> --%>
         <jsp:useBean id="param" class="datapackage.AnCeBean" scope="session" />
         <jsp:useBean id="dl" class="datapackage.DivertList" scope="session" />
         <style media="print">
        .hide_print {display: none;}
       </style>
    </head>
    <body>
        <% 
         int annee=param.getAnnee();
         int idcentre=param.getCentre();
         int spec=param.getSpec();
         int langue=param.getLangue();
         int matspec=param.getMatspec();
         int [] gradeaffL=param.getGradeaff(); /*la liste des grade selectionnez */%>

      <span class="hide_print"><a href="cleanpage.jsp">retour</a></span>
      <h5><p align="left">UNIVERSITE LIBANAISE-ISAE-CNAM/LIBAN &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Horaire des cours <%=param.getAnnee() %> &nbsp; &nbsp;SEMESTRE:<%= param.getSemestre() %> </p> </h5>
      <h6> SPECIALITE:&nbsp; <%=param.getNomspec() %>&nbsp;/ &nbsp;Cycle:&nbsp;<input type="text" name="P1" size="20"/><br>
       <%  SimpleDateFormat sdf= new SimpleDateFormat( "yyyy-MM-dd" );
           TimeZone local = TimeZone.getDefault();
           sdf.setTimeZone(local);
        // new Date() gets current date/elapsedTime
        String dateString = sdf.format( new Date() );
         %>
       Date:&nbsp <%= dateString %>
      </h6>
      <table border=3 width="100%">
          <tr>
             <td width="4%" class="title" >Horaire</td>
             <td width="16%" class="title">Lundi</td>
             <td width="16%" class="title">Mardi</td>
             <td width="16%" class="title">Mercredi</td>
             <td width="16%" class="title">Jeudi</td>
             <td width="16%" class="title">Vendredi</td>
             <td width="16%" class="title">Samedi</td>
             </tr>
        <%for(int p=0;p<=StaticClass.periode-1;p++){
        %>
        <tr>
            <th nowrap><br><input type="text" name="P1" size="6"/></th>

          <%  for(int j=1;j<=6;j++){
              boolean first=true; %>
         
              <td id="horaire" align="center" height="75px"><font size="-1">
                  <% List<UeProf> mpl=dl.AvoirMP2(annee, idcentre, spec, gradeaffL, p, j,langue,matspec);
                  if(j==6){ %>
                      <input type="text" name="P1" size="6"/><br> <%}%>
                    <%  for(UeProf up:mpl){   
                            if (first) first=false;
                            else {%>
                                <hr size="1" align="center" color="blue" />
                            <%}%>
                      <%= up.getIntitule() %>
                     <br>
                    <i> <%= up.getPrenom()+" "+up.getNomprof()+"/G:"+up.getNoGroupe() %></i>
                    <br>
                    <br>
                    
                    <%}%>
               </font>
              </td>
             <%}%>
       </tr>
        <%}%>
      </table>
      <b><span class="hide_print"><input type=button value="imprimer" onclick="window.print();"/></span><h5>
          <p align="right">
                     <%if(param.getPrenomnomchef()!=null)out.println("Chef du departement: "+param.getPrenomnomchef());
                      if(param.getPrenomnomEmp()!=null)  out.println(param.getPrenomnomEmp());
                      %></p></h5></b>
    </body>
</html>
